#include "InputManager.h"


InputManager::InputManager()
{
}


InputManager::~InputManager()
{
}

InputManager& InputManager::GetInstance()
{
	static InputManager instance;
	return instance;
}

void InputManager::Update()
{
	keyboardBuf = Keyboard->GetBuffer();
	keyboard = Keyboard->GetState(); 
}

BOOL InputManager::IsBuffer(Keys key)
{
	return keyboardBuf.IsPressed(key);
}
BOOL InputManager::IsState(Keys key)
{
	return keyboard.IsKeyDown(key);
}